<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" name="row[title]" type="text" class="form-control" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('统计范围')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-scope_type" name="row[scope_type]" class="form-control">
                <option value="province" {if $row.scope_type=='province'}selected{/if}>{:__('省')}</option>
                <option value="city" {if $row.scope_type=='city'}selected{/if}>{:__('市')}</option>
                <option value="school" {if $row.scope_type=='school'}selected{/if}>{:__('学校')}</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('统计区域')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-region_mode" name="row[region_mode]" class="form-control">
                <option value="self" {if $row.region_mode=='self'}selected{/if}>{:__('本级')}</option>
                <option value="children" {if $row.region_mode=='children'}selected{/if}>{:__('所辖')}</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('课堂类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-teach_mode" name="row[teach_mode]" class="form-control">
                <option value="all" {if $row.teach_mode=='all'}selected{/if}>{:__('全部')}</option>
                <option value="offline" {if $row.teach_mode=='offline'}selected{/if}>{:__('线下')}</option>
                <option value="online" {if $row.teach_mode=='online'}selected{/if}>{:__('线上')}</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('时间范围')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" id="c-date_start" name="row[date_start]" class="form-control datetimepicker" value="{$row.date_start}">
            <input type="text" id="c-date_end" name="row[date_end]" class="form-control datetimepicker" value="{$row.date_end}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8" id="div-status">
            <input id="c-status" name="row[status]" type="hidden" value="{$row.status}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher {if $row.status=='1'}active{else}text-gray{/if}" data-input-id="c-status" data-yes="1" data-no="0">
                <i class="fa fa-toggle-on fa-2x {if $row.status!='1'}fa-flip-horizontal{/if}"></i>
            </a>
            <div data-favisible="switch=1" class="p-3">已开户</div>
            <div data-favisible="switch=2" class="p-3">不允许</div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>